package com.blues.marker.model;

import javax.persistence.*;

@Entity
@Table( name = "sys_user" )
public class User {

	private long userId;
	private String loginName;
	private String password;
	private String userName;
	@Id
	@Column(name = "user_id", unique = true)
	public long getUserId() {
		return this.userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	
	@Column(name = "login_name")
	public String getLoginName() {
		return this.loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	@Column(name = "pass_word")
	public String getPassword() {
		return this.password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	@Column(name = "user_name")
	public String getUserName() {
		return this.userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String toString() {
		return "{userId: " + this.userId + ", loginName: " + this.loginName + ", password: " + this.password + ", userName: " + this.userName + "}";
	}
}
